import axios from 'axios';
import {API_NEW_VERSION} from '../api';
// 服务列表
export const searchInfoList = params => {
  return axios.get(API_NEW_VERSION + 'excellent_route_service_promises', {params: params});
};
// 保存服务承诺
export const saveInfo = (params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_service_promise', params);
};
// 根据ID获取服务承诺
export const getInfoById = (id) => {
  return axios.get(API_NEW_VERSION + 'excellent_route_service_promise/' + id);
};

// 修改服务承诺
export const modifyInfo = (id, params) => {
  return axios.post(API_NEW_VERSION + 'excellent_route_service_promise/' + id, params);
};
